3.3
LOW CVSS 3.0
CVE-2025-61785
Deno's --deny-write check does not prevent permission bypass
Description

Deno is a JavaScript, TypeScript, and WebAssembly runtime. In versions prior to 2.5.3 and 2.2.15, `Deno.FsFile.prototype.utime` and `Deno.FsFile.prototype.utimeSync` are not limited by the permission model check `--deny-write=./`. It's possible to change to change the access (`atime`) and modification (`mtime`) times on the file stream resource even when the file is opened with `read` only permission (and `write`: `false`) and file write operations are not allowed (the script is executed with `--deny-write=./`). Similar APIs like `Deno.utime` and `Deno.utimeSync` require `allow-write` permission, however, when a file is opened, even with read only flags and deny-write permission, it's still possible to change the access (`atime`) and modification (`mtime`) times, and thus bypass the permission model. Versions 2.5.3 and 2.2.15 fix the issue.

INFO

Published Date :

Oct. 8, 2025, 1:15 a.m.

Last Modified :

Oct. 8, 2025, 7:38 p.m.

Remotely Exploit :

No
Affected Products

The following products are affected by CVE-2025-61785 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Deno deno
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.0 LOW [email protected]
Solution
Update Deno to a patched version to enforce file modification time permissions.
  • Update Deno to version 2.5.3 or later.
  • Update Deno to version 2.2.15 or later.
  • Ensure file write permissions are correctly configured.
Public PoC/Exploit Available at Github

CVE-2025-61785 has a 1 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-61785 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2025-61785 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

My personal repository

Updated: 5 days, 2 hours ago
0 stars 1 fork 1 watcher
Born at : Oct. 6, 2023, 4:45 p.m. This repo has been linked 90 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-61785 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2025-61785 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by [email protected]

    Oct. 08, 2025

    Action Type Old Value New Value
    Added Description Deno is a JavaScript, TypeScript, and WebAssembly runtime. In versions prior to 2.5.3 and 2.2.15, `Deno.FsFile.prototype.utime` and `Deno.FsFile.prototype.utimeSync` are not limited by the permission model check `--deny-write=./`. It's possible to change to change the access (`atime`) and modification (`mtime`) times on the file stream resource even when the file is opened with `read` only permission (and `write`: `false`) and file write operations are not allowed (the script is executed with `--deny-write=./`). Similar APIs like `Deno.utime` and `Deno.utimeSync` require `allow-write` permission, however, when a file is opened, even with read only flags and deny-write permission, it's still possible to change the access (`atime`) and modification (`mtime`) times, and thus bypass the permission model. Versions 2.5.3 and 2.2.15 fix the issue.
    Added CVSS V3 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
    Added CWE CWE-266
    Added Reference https://github.com/denoland/deno/commit/992e998dfe436cdc9325232759af8be92f11739b
    Added Reference https://github.com/denoland/deno/pull/30872
    Added Reference https://github.com/denoland/deno/releases/tag/v2.2.15
    Added Reference https://github.com/denoland/deno/releases/tag/v2.5.3
    Added Reference https://github.com/denoland/deno/security/advisories/GHSA-vg2r-rmgp-cgqj
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 3.3
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact